<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport"
		  content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>{$title}</title>
	{load href="/static/index/css/bootstrap.min.css"}
	{css href="/static/index/css/register.css"}
	{css href="/static/index/css/m-footer.css"}
</head>


<!-- saved from url=(0091)https://passport.tujia.com/PortalSite/Register/#prevId=a25e5ac2-b319-9b8a-d94d-2f80b9fba976 -->


<body style="background-image: url('/static/index/images/body01.jpg');">
<div class="container-fluid">
	<div class="wrap-large">
		<div class="back-home">
			<a href="{:url('index/index/index')}" class="link-btn">返回首页</a>
		</div>
		<div class="hd-box">
			<h1 class="site-logo"></h1>
		</div>


		<div class="row">
			<div class="col-md-5"></div>
			<div class="login-btn-tabs login-btn-tabs-type">
				<a href="javascript:void(0)" class="active">普通用户登录</a>|<a href="javascript:void(0)" class="">手机密码登录</a>

			</div>
		</div>
		<div class="tab_box">
			<!--用户登录-->
			<div class="row">
				<div class="col-md-5"></div>
				<div class="col-md-7">

					<form class="form-horizontal"name="regForm"  id="registerForm" action="{:url('/index/Login/login')}" autocomplete="off" onsubmit="return checkForm()" method="post">
						<input data-val="true" data-val-required="IsEnterpriceRegister 字段是必需的。" id="isEnterpriceRegister" name="isEnterpriceRegister" type="hidden" value="False" />
						<input id="source" name="source" type="hidden" value="" />
						<input type="hidden" name="_method" value="PUT">
						<input type="hidden" name="id" value="">
						<div class="form-group">

							<div class="col-md-5 col-sm-10">
								<input type="text" class="form-control" value="" maxlengt="11" id="mobile" name="user"  placeholder="用户名">
								<span id="utab"></span>
							</div>
						</div>
						<div class="form-group">

							<div class="col-md-5 col-sm-10">
								<input type="password" class="form-control" id="password" name="pass" placeholder="密码" >
								<sapn id="ptab"></sapn>
							</div>
						</div>


						<div class="form-group">

							<div class="col-md-4 col-sm-10">
								<input class="form-control" id="inputVerify" name="verify" placeholder="验证码" type="text"
									   data-error="验证码错误" required><br>
								<div><img id="verify_img" src="{:captcha_src()}" alt="验证码" onclick="refreshVerify()">
									<a href="javascript:refreshVerify()">点击刷新</a></div>
							</div>
						</div>

						<div class="form-group">
							<div class="col-md-2 col-sm-10">
								<div class="checkbox">
									<label>
										<input type="checkbox"> 记住我
									</label>
								</div>
							</div>
						</div>
						<div class="form-group">
							<div class="col-md-2 col-sm-10">
								<button type="submit" class="btn btn-default" id="registerSumbit">登录</button>
							</div>
						</div>
					</form>
				</div>
			</div>

			<!--手机登录-->
			<div class="row" style="display:none;">
				<div class="col-md-5"></div>
				<div class="col-md-7">
					<form class="form-horizontal"name="regForm"  id="registerForm" action="{:url('/index/Login/loginTel')}" autocomplete="off" onsubmit="return checkForm()" method="post">
						<input data-val="true" data-val-required="IsEnterpriceRegister 字段是必需的。" id="isEnterpriceRegister" name="isEnterpriceRegister" type="hidden" value="False" />
						<input id="source" name="source" type="hidden" value="" />
						<input type="hidden" name="_method" value="PUT">
						<input type="hidden" name="id" value="">
						<div class="form-group">
							<div class="col-md-4 col-sm-10">
								<input type="tel" class="form-control" value="" maxlength="11" id="phone" name="user_phone"  placeholder="手机号">
								<span id="utab1"></span>
							</div>
						</div>
						<div class="form-group">
							<div class="col-md-5 col-sm-10">
								<input type="password" class="form-control" id="password" name="pass" placeholder="密码" >
								<sapn id="ptab"></sapn>
							</div>
						</div>
						<div class="form-group">
							<div class="col-md-4 col-sm-10">
								<input class="form-control" id="inputVerify" name="verify" placeholder="验证码" type="text"
									   data-error="验证码错误" required><br>
								<div><img id="verify_img1" src="{:captcha_src()}" alt="验证码" onclick="refreshVerify1()">
									<a href="javascript:refreshVerify1()">点击刷新</a></div>
							</div>
						</div>

						<div class="form-group">
							<div class="col-md-2 col-sm-10">
								<div class="checkbox">
									<label>
										<input type="checkbox"> 记住我
									</label>
								</div>
							</div>
						</div>
						<div class="form-group">
							<div class="col-md-2 col-sm-10">
								<button type="submit" class="btn btn-default" id="registerSumbit">登录</button>
							</div>
						</div>
					</form>
				</div>
			</div>

		</div>


	</div>

	<div id="footer" class="footer-wrap" style="margin: 0; margin-top: 15px; position: absolute; top: 900px; width: 100%;">
		<div class="m-footer-link-list" style="border:0; background-color: transparent">
			<a href="http://content.tujia.com/tujiajianjie.htm" target="_blank" class="forst" rel="nofollow">关于我们</a>|
			<a href="http://content.tujia.com/youkebangzhu.htm" target="_blank" rel="nofollow">我是房客</a>|
			<a href="http://content.tujia.com/qiyewenhua.htm" target="_blank" rel="nofollow">加入途家</a>|


			<a href="https://www.tujia.com/sitemap.htm" target="_blank">网站地图</a>
		</div>

		<div id="copyright" class="copyright-cont" style="border:0; padding:0; margin-top:3px;">
			<p style="margin:0;">© Copyright 2017 tujia.com 途家版权所有<span><a href="http://www.miitbeian.gov.cn/" target="_blank" rel="nofollow">京ICP证120277号</a></span> <span style="display: inline-block; margin-left: 10px">京公网安备11010502027120</span></p>
			<p class="safe-cont">
				<a href="http://www.12377.cn/" target="_blank" rel="nofollow">
					<img src="/static/index/images/safe-img1.jpg" alt="互联网违法和不良信息举报中心" width="138" height="40">
				</a>
				<a href="http://bj.cyberpolice.cn/" target="_blank" rel="nofollow">
					<img src="/static/index/images/safe-img3.jpg" alt="北京市公安局网络违法犯罪举报" width="98" height="40">
				</a>
				<a href="http://www.itrust.org.cn/home/index/itrust_certifi/wm/PJ2017011301.html" target="_blank" rel="nofollow">
					<img src="/static/index/images/net-img1.jpg" alt="企业信用评级" width="113" height="40">
				</a>
			</p>
		</div>
	</div>
	{js href="/static/index/js/jquery.min.js"}
	{js href="/static/index/js/bootstrap.min.js"}
	{js href="/static/index/js/validator.js"}



	<!--用户验证码验证规则-->
	<script>
        function refreshVerify() {
            var ts = Date.parse(new Date())/1000;
            $('#verify_img').attr("src", "/captcha?id="+ts);
        }
	</script>

	<!--手机验证码验证规则-->
	<script>
        function refreshVerify1() {
            var ts = Date.parse(new Date())/1000;
            $('#verify_img1').attr("src", "/captcha?id="+ts);
        }
	</script>

	<!--jquery实现手机页面和用户注册切换-->
	<script>
        $(function(){
            $(".login-btn-tabs a").click(function(){
                $(this).addClass("active").siblings().removeClass("active"); //切换选中的按钮高亮状态
                var index=$(this).index(); //获取被按下按钮的索引值，需要注意index是从0开始的
                $(".tab_box > div").eq(index).show().siblings().hide(); //在按钮选中时在下面显示相应的内容，同时隐藏不需要的框架内容
            });
        });
	</script>



</div>